package com.dxx.cloud.admin.module.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 客户礼品卡
 * </p>
 *
 * @author 杜辉
 * @since 2025-08-16
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("customer_gift_card")
@Schema(description = "客户礼品卡")
public class CustomerGiftCard extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    
    @Schema(description ="商户id")
    private Long merId;

    @Schema(description ="门店id")
    private Long shopId;

    @Schema(description ="客户id")
    private Long customerId;

    @Schema(description = "序列号")
    private String serialNo;

    @Schema(description = "提货码")
    private String password;

    @Schema(description ="礼品卡id")
    private Long giftCardId;

    @Schema(description ="面值")
    private BigDecimal parValue;

    @Schema(description ="折扣")
    private BigDecimal discount;

    @Schema(description ="剩余值")
    private BigDecimal leftValue;

    @Schema(description ="过期时间")
    private Date expirationTime;
}
